﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员登录_Swoole开发框架官方网站</title>
<link href="/static/css/base.css" rel="stylesheet" type="text/css">
<link href="/static/css/grid.css" rel="stylesheet" type="text/css">
<meta name="Copyright" content="Swoole.com" />
<meta name="description" content="注册为Swoole社区会员" />
<meta name="keywords" content="PHP,Web,PHP社区,PHP程序员,PHP高级,Go语言,Python语言,Golang" />
<script language="javascript" src="/static/js/jquery.js" type=text/javascript></script>
<script language="javascript" src="/static/js/validator.js" type=text/javascript></script>
</head>

<body>
{{include file='header.html}}
<script language="javascript">
window.onload = function(){
	validator('form1');
	validator_each('form1');
};
error_handle = function(o,msg){
	var msg_o = document.getElementById(o.name+'_msg');
	if(msg_o==null) return false;
	msg_o.innerHTML = '<img src="/static/images/false.png" border="0" />' + msg;
	o.style.backgroundColor = '#ffcccc';	
	document.getElementById('submit1').disabled = true;	
}
right_handle = function(o){
	var msg_o = document.getElementById(o.name+'_msg');
	if(msg_o==null) return false;
	msg_o.innerHTML = '<img src="/static/images/true.png" border="0" />';
	o.style.backgroundColor = '#fff';
	var btn = document.getElementById('submit1');
	if(btn) btn.disabled = false;
}
function check_email(o,info)
{	
	var s = jQuery.getJSON('/ajax/check_email/',{'email':o.value,'random':Math.random()},function(data){
																								  if(data) error_handle(o,info);
																								  else right_handle(o)});
}
</script>

<div class="areamap">
<a href="{{$smarty.const.WEBROOT}}/" target="_parent">首页</a> > 会员登录</div>

<form method="post" id="form1">
<div class="mainreg">
<h2>会员登录</h2>
<table width="600" border="0">
  <tr>
    <td width="100" height="36"><strong>电子邮箱<span class="red">*</span>：</strong></td>
    <td width="182" height="36"><input type="text" size="30" value="{{$smarty.cookies.username}}" class="inputlen" name="username" id="username" empty="请您填写邮箱！" ctype='email|邮箱格式不对' /></td>
    <td width="333" height="36"><span id='username_msg'></span></td>
  </tr>
  <tr>
    <td width="100" height="36"><strong>登陆密码<span class="red">*</span>：</strong></td>
    <td height="36"><input type="password" size="30" value="" class="inputlen" name="password" id="password" empty="请您填写登录密码！" /></td>
    <td height="36"><span id='password_msg'></span></td>
  </tr>
  <tr>
    <td width="100" height="36"><strong>验证码<span class="red">*</span>：</strong></td>
    <td height="36"><input type="text" size="12" value="" class="inputlen" name="authcode" id="authcode"  empty="请您输入验证码！" />
      <span><img src="/page/verify/" align="absmiddle" class="" /></span></td>
    <td height="36"><span id='authcode_msg'></span></td>
  </tr>
  <tr>
    <td height="36">&nbsp;</td>
    <td height="36"><span class="regbutton">
      <input value=" 登 录  " type="submit" id='submit1' />
      或 <a href="/page/register/">注册新帐号</a></span></td>
    <td height="36"></td>
  </tr>
  <tr>
    <td height="36"></td>
    <td height="36" colspan="2">
     <a href="/page/oauth/?s=qq"><img src="/static/images/qqlogin.gif" width="111" height="21" /></a>&nbsp;
     <a class="snssina" title="新浪微博帐号登录" href="/page/oauth/?s=sina"></a>
     </td>
    </tr>
</table>
</div>
</form>
{{include file='footer.html}}